<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <template>
       <img src="https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1556248627&di=47acf9f64d17cee79de43161f8295729&src=http://dingyue.nosdn.127.net/dMFUBz5X3PNAiV5ZizQAcyNPxDTDV8oxwgz1nA38gSMER1500800755928compressflag.jpg" alt="">
   </template>
</body>
<script>
   var temp = document.querySelector("template");
   console.log(temp.content)
</script>
</html>